Grounded switches, added trigger and output