T-K-O-H
Update code to use environment variables and improve error handling
ce67515