Added command line passing of number of frames