Sync method.