Implemented connection process
First working version