Slave spins main code