scales now is a stand-alone function, as suggested by a redditor