Successfully able to get ‘Cancel’ button to work using NSOperationQueue.