Implemented SyncService

This should help with #12.