Deleted some setters and added exception to constructor.