Add ability to cancelSync