#80 - Moved logic around from checkInput to clear to avoid duplicate clear events