Use environment variable to store threshold