[AN] Styling fixes.
[LMP] Emit state change entity, closes #1252.