First scale function