Implemented client functionality.