Added debug messages for checking out workunits.