Add configurable way of determining number of doors instead of just adding one in each direction