Methods connect and disconnect implemented