Replace global functions by eval