Successfully moved all calculations into CUDA