Added virtual sites to make the algorithm faster