Removed duplicated function. Added helper function to Scales.