Added method to cancel sync