Set up USB functions early