Added getDims and clean