Cut over to golang implementation
Take environment variables again