Merged new_preoutput_impl