Added a factory reset