Array replaced with hash table