Taking an optional options object instead of depending on an environment variable