Refactor to use double, fixed small errors