Change add video algorithm