Added proper function to the client.
Implemented all required commands.