Emit events instead of writing files