Scanner is now fully dynamic

Updated the code so that the PID and byte array can be specified in at
runtime.