Updated code so that it will run with changes to 1.04 rev of FPGA code.