Only emit events if needed