Forgotten removepoints code added.