Added acknowledgement code and storing of multiple clients