Added registerConnection method