Implement server and more of client