Emit 'end' added.