[WIP] Flatten array since it doesn't need the loop