Advance line only if succeeded.