Added readPref() to control query routes.