Adding an emit_return function.