Trimming down example
Added logic to output data about array usage for post-processing