Add $type property