Refactored downtime to call new process_downtime function. Issue #31