Got it working. Need to fix any bugs and check time updating still works. Also fix debug statements. Need to comment.