Changed application code to have proper format for handing off CSR arrays.