Move to sync() function.