Code for MscHouses mod