Fixed return value
Improved config tool to also do device IOCTLs