Implemented most of connect frame