Finished writing the background sync service but there may yet be
debugging to be done.