Takes a snapshot of existing processes and iterates through them