Updating arrays and algorithms