I need to dynamically warp some unknown code in an anonymous function and pass some parameters to it. e.g.