Adds backlog calculation to data frame. Logic may still be wrong.