added delay_duration functionality.