Added clearing display state to fix inability to operate on numbers longer than one digit after first term.