Added getters and setters for variables.