Added multiline input support