Converting to counter to use the FPGA, as apposed to polling the digital inputs.