Improved efficiency of generated code
Merge branch 'master' of https://github.com/ljmanso/AGM