Just thinking out loud cause don't know very well if this is heretic orsomething ..
define a new structured datatype, and make your function fill and returnthis datatype..
Andres