Worker bug fixes. Tweaks to help debugging.