Might be unneccessary addition to handle search. Probably better ways of doing it