Refactor to take Carl out of inline scripts and into his own, well-deserved namespace