Make the kline perimieter integration more nicely.