Hopefully implemented repair scaling, not tested though