Added printing in thread
removed read's from other places in code