Changed integer types to unsigned in list devices
Implemented input via pipe