Added check for existing process