Use simple arrays to conserve memory