Add several routing functions, plus a couple query methods.