__init__ functions updated to reset of variables.