Fixed the look up script