Add roll_work function