Added mode calculation
Added metadata for CLR objects