Default value for searchMode
Remove pointless variable