Added method for generating rooms.