Sped up c6/c8/c9 calculations