changed sleep period from 3000 to 5000