I inherited this code once upon a time and had to make it work. Never do what this code does. This repo is meant to serve as a warning to good developers everywhere.