Implemented most of NCX protocol.