That code is ingenious. I'm in awe.