Adding array result functionality to server.