A device adapted to dispense or spray a coating such as a foam in a predetermined pattern or manner on a substrate, preferably a roof. Whether each soft bit participates in at least some iterations is determined according to a selection criterion, e. The compulsory collection is controlled to prevent developer from overflowing in the developer cartridge when a printing operation is terminated or an error occurs during the printing operation.