Added rate graph, cleaned up isOrphan method