Expose a function to read environment.