Implemented client, but there are some bugs...