Fixed compiler errors. Now to Debug and wring in our S/R count.