Refactoring. Changed boolean isRunning from public to private. Added helper method for displaying toasts.