Use klass instead of defined class.