Added frame counter.