Used parser as event emitter