Refactoring for IOCP.