Changed relay endpoint to handle multiple device objects for consistent numbering