Pot warning beta - needs testing, and checkSwitches() needs reviewing!