Can you look at this, please? This solution is somewhat ugly, but works. Appliances do not need to be in exact order, nor they need to be numbered.