Use expect syntax
Make connection_type_for public and pass options