Added scaling functions.