Minor improvements to tecfit operation