Added timeout to read command