Complete overhaul. Now uses time synced to epoch
.