Removed scale function