Added code for the video pipeline