Got anonymous functions working