Fixed check if process is already running
Added script to check if process is running