Added correct search function to hostAdd