Modify API to set envvars from the constructor rather than leaving them up to the consumer