Adding little Optimized Code for fast running of the video