Improve API.
Add connection.