My refactoring of the USB-Rubber-Ducky code