Moved device code to run after USB has been initialized.