I'm not a big fan of macros, but this is definately an improvement
Merge branch 'master' of github.com:happypancake/fdb-erlang