Simplify. Use just one variable for two modes.