This removes the cumbersome &mut bool argument and offers overall
a more readable code.