Fixed usage of outdated do_result function