Added frame counter