UPDATE: Switched over to using the compiler directly with a few compiler optimizations.