Added capability for z-planes, necessary for BEAVRS. Double precision is still producing an error on GPU.