Original: The court also frequently appoints a forensic psychologist to assess the state of mind of the defendant at the time of the offense.
Simplified: Another job of a forensic psychologist is to investigate the state of mind of the defendant at the time he or she committed the crime.