Replaced an evaled string with proper metaprogramming tools.