Now search is aborted when no terms are entered
Added some debug logging