I like how this is in a closure - cleans it up a lot