Implemented sendInit method for initializing communication.