I partly implemented scaling. It doesn't work now, and there is a part to refactor.