Fix "temp" name bug and store references to sockets in groups based on input data requirements"