Cleaned up process monitoring.