Use more idiomatic do_foo style for inner funcs.