Export the roll_work function to be usable by driver code and make it compatible with rolling stratum work.