Switched to using an array instead of a hasmap