save duration as first_stage_delay and cleanup as second_stage_delay #192