Added better options for scaling.