Working on search logic.