Added bootstrap_popgraph function, haven't tested it yet.