Fix bogus warning
Massive overhaul to support nonblocking operation.