Add input validation.
Add test connection.