Logging added to ZIO.c