Implemented single-client version of program