Refactored the process monitoring script to use a class, which makes the code much more readable and maintainable.