Encode subhouses controller.