Added metaclass support.