added time lapse code