Commit before sync