Modified for our environment. See README.