Added the scaling functions