interceptTime function now returns the correct time
Main currently in a mess