Shuffle code around, export the device interface.