Added methods to get and set environment variables.