Created queue for state change events. Not finished.