Added flag to determine whether final video should be created