I couldn't do the latter because I 'd get a duplicate Id exception when I tried to run the exec method.. Believe me I d rather do the way you suggested.. Other than copy pasting 15 methods with exactly the same code, this meta programming saves me typing. If you have the PR checked out try the mods you are suggesting and you'll see what I am hitting.