Implement an is_running() function.