I am going to do this, but for now try keeping the function in a closed scope, because I don't mind making this a function, but not sure if we care about inernal things like this being exposed.