Added base connection management class.