Fix sleeping
Looks better
Merge sleep fix.