Added scale matrix building.