I don't think this needs to be guarded by frameWriter; it makes more sense to guard this by this.