More globals and time sync fixes (#18)