Refactored reset for simple implementation.