public function shiftFrame()
    {
        $this->loadFrames();

        if (empty($this->frames)) {
            throw new \RuntimeException('No more IdFrames?');
        }
        return array_shift($this->frames);
    }