Added support for multiple rooms.