Flange program with toggle switch

And more flanginess