Did some anonymous functions stuff