Added support for stdClass