Cleanup and lerping function.