Bit of documentation on the controller logic.