Implemented hashing and decoding. Currently works for 2,3,4 servers.