Changed the the script to use searchname insted of name