Implemented correct search in lists