WIP rewrite of the cartridge system.