Mild refactor. Better boolean assignment.