Implemented basic active-search. Kind of buggy?