Modifiers, like pronouns, are generally connected to the nearest word that agrees with the modifier. If a modifier is placed too far from the word that it modifies, the meaning becomes lost or obscured.
WRONG: Flying for the first time, the roar of the jet engines intimidated the small child, and he grew frightened as the plane roared down the runway.
RIGHT: Flying for the first time, the small child was intimidated by the roar of the jet engines, and he grew frightened as the plane roared down the runway.
** Modifiers should be placed as close as possible to the words they modify.