Adds environment variables to default params to reduce repeated code

This is a quick hack to help with #6