Adding a Twig extension to handle various tasks. Good grief that was a lot of troubleshooting when there really wasn't even anything wrong with the code. Stupid php-cli.