A little refactoring to increase clarity.