Use array instead of map