changed sleep time and added status variable