Loop optimizations.
Merge branch 'master' of https://github.com/guzo/sem_wzew