Added storing switch state in MongoDB (through RabbitMQ queue)