Added implementation of the VARIANT APIs.