Fixed bug where emit wasn't using internal arguments.