Added getters and setters for field variables.