Added state changed event.