added time_delay and helper scripts