Now uses the real time difference instead of assumed.
Merged with new GUI.