Lots of sync code added, but no actual network code yet.