Added message deduplication in server.