Implemented application restarting