Added support for canceling searches