Updated to work with new io blocking code.