Planning for unplanned work