Add Sync API
Add command-line interface