Add error input handling.