Baisc implementation of emit