modifying initial sleep period of 30 min longterm code