Density aware scaling methods. Made various methods that may be used internally final.