Sync with template