Adding some logic to the synchronize action.
Adding some logic to the synchronize action.