Added API for getting environment variable