Added delegate to cancel block before calling it