Implemented a hashtable to store messages that have already been processed