Returning a value instead of producing side effects in completions