Cleaned up the process start/stop code.