added dynamic sleeping