Added exclude name when registering class.