Tor implements a highly customizable control protocol which can be used to tune almost all aspects of its operation.