Towards a better time complexity. Build is brocken.