Local mode done. API mode done. Sync fully working.