Refactored the e-reset utility.