Corrected the function call for sync