Added job clustering and data cleanup for Pegasus module