Added a way to detect when entities add or remove components.