The variant with a boolean parameter