Improved sleep loops for start and stop. Resolves #27