Added 'reach_temp' Phase type and improved batch logic.