Support read from stdin