Some minor changes to prepare_hires script