Minor optimizations
Merge branch 'master' of github.com:LorenzMeier/qupgrade