Should probably use the real calculations in cartridge.cpp...