Changed the scaling to the real side value to add to the side distance. Works well.