Extra get methods for class, replaced sample writing.