added add_sleep method