Fixed bugs. Model has a interface