Implement onEmit callbacks