Why not wrap this entire thing in a an anonymous func?