Fixed percision and seem to have things working now. More testing is
required.