Updated the generation of the new pins when reseting