Correction to search terms configuration file logic and removal of redundant code