Added initial support for function return values.