Changes to reduce duplicaition in perl ,gprof and h264