Added scale functions.