Added new virtual functions to ValueType. + other stuff