Added a method to reset variables in model