Use create_function() instead of eval()