Programmable dosing and group cleaning