Improve screening for invalid input to linesync.