Change DPRINTF in give_work. Source of errors was here.