Integer arrays now work. Memory handling is inefficient.