Pull #117: Changed name of environment variables to the more meaningful 'mode'.