Forensic psychology applies psychology to legal issues, often involving expert testimony in court. Forensic psychologists may evaluate individuals to determine competency for trial, the relationship between mental disorders and crimes or accidents, and potential for future dangerous behavior. They gather forensic histories including records and reports, conduct interviews and tests, and are expected to understand relevant legal issues. In child custody cases, forensic psychologists may evaluate families to recommend custody arrangements in the child's best interests.