Added splitting on the sites to avoid running out of memory