Added getters, setters and constructors.