It works

Still need to add code for an initial first sync.