For getting keyframe size - fix minor bug and use SGE