Add in unblock flag but still fails to read socket and allow user input the same time