Changing to use array instead of list for performance reason