Works with 2d arrays perfectly on the simulator too