Added 'toPoints' argument.