Add flag for setting non-blocking mode.  This was done and pulled out previously, but it's been implimented properly this time around.