Frame integers

speeded up frame integers for a bit!