Added run function in echo client