For exploiting renewable energy resources and obtaining the maximum profit, Distributed Generation (DG) is expected to be as large as possible. However, the DG detrimental impacts on the connecting systems, which are proportional to DG, should be prevented. This paper proposes an algorithm to maximize DG along with an assistance of grounding reactance to keep the sensitivity of corresponding protective relaying at acceptable grades. To illustrate the application of this algorithm, a case study is done through the IEEE 34 Node Test Feeder.