Added ExecuteFunction overload for scalar return values.