Changed all kernels to have num_dim optional with a default of 1.