Add scheduling and error checking. Now fully functional.