Implemented the ConnectionHandler, not tested tho