Added ; to end of emit statements