Working on connection management and authentication