Changed prism code back to 3 loops for integration