Added constructor, setters and getters.