Fixed timing error in readerMain and added sleep in w_tty.