Pennsylvania courts will be precluded from rewriting custody arrangements for the children of deployed soldiers under a new state law.

Gov. Ed Rendell has signed the bill sponsored by Sen. Mike Folmer, R-Lebanon.

Folmer said the law is needed to ensure that soldiers don't suffer the extra stress of a custody case while they are overseas. It also

prevents one parent from taking advantage of a soldier's deployment to gain custody.

The bill allows temporary custody orders to be implemented while a soldier is deployed, but it puts the original orders back in place when the soldier returns home.