Added emit parameter.