Adding multi-key function to collect keys by server.