Convert and Invert killNLoop to cont