Added searchPath option to wiring functions