Added support for multiple data argments with emit