getCurrentFrame is added.