Added methods for getting and setting values.