Making a bunch of changes to help run CUDA based algorithms.