First version of stdin as input