Added check for already running instance of app