Click to reset, more modular code