Added support for returning structs.