Added support for single-line input.