Using also the output parameters to get the correct overload of the procedure