Added cuda error checking