Made a new epoch function. Still two major things to do: send the Shero command after a trial and update Java meter after a predicted event.