Migrated from using dictionaries to using arrays to store data.