Updated Source::emit so that the source emits correctly.