Minor IO extensions.