Using arrays in desperation for functional output