extracted 5 second sleep to constant