Renamed a few helper methods and environment variables to make it more intuitive to read.