There probably are better names for many of the variables. This is from before we used minification, trying to be small.