Added getters and setters for attributes.