Awful hacked up mishmashed code, even looking at it will make it break.
You have been warned.