Function migratePoints