Check for d and use kmScalars