Added way of retrieving environment variables.