Cleaned up code a bit, fixed default SLEEPTIME