Got rid of references to instancestats in model