>This seems...a bit odd.
The code is pretty scary from the get go. "A bit odd" doesn't really cover it.