protect the total number of toggles
Merge branch 'ticket-56' of github.com:creswick/StreamingQR into ticket-56