Tweaks to status tracking and debug messages in iom.c.