Fix some function & Add Communication Codes.