Added a format check to speed things along in the trainer