Pseudo code in lib/dishwasher.js