Wrap evaled code in a function.