Added clearInput helper.