Updated error handling.
Updated clear button.