Added clearTable function.