Got stung by the division operator because it can return ratios so changed calls to use quot function.