Improved array formatting