It doesn't work without the anon function