Made the scale factor a float instead of an int so it can be more
precise.