Replaced some copy-paste code with a generator macro
Merge branch 'dev_active' of https://github.com/SimonStreicher/LoopRank into dev_active