New class Connectionmanager.