Make $class null by default.