Move some things out of the Slave class.