The code for distributed system