Made it possible to remove avoid saving templates in mixture model.