Working on impurity lattice coupling routine