Added ssh-data-ready? to check if there are data to be read.