Added support for 'input' reading