Changes for testing out new algorithm in intra_H_migration. Code not yet working.