Refactored usage of reset