Finished the core functionality of syncing time restrictions. Need testing