Human factors is the scientific discipline of the interaction between humans and elements of a system, applying knowledge of people and how they function within an environment. It allows for the evaluation of attentiveness, perception, memory, and performance, and is the doorway to understanding reasonable or reasonably safe behavior. The proper application of human factors in forensic investigations provides insight into why an incident occurred, and how it could have been avoided.