Improved the stop function
Removed blank line