Added check for process already running