Changes variable name and added anon function