Reworked to put dataset on GPU. Seems to work