Add connection API.