Standard input now check if there is data available for read