Return with sub_function support