Fix code to use non-anoymous functions