sentences:  Modifications were made around 1640 and after a fire in 1666, and then again around 1740 after another line of Salzburg nobility, the Khuenburg (Küenburg) family had taken over.This line held formal rule until the Revolutions of 1848, and maintained effective ownership of Gleinstätten (and were frequently elected to public offices) until 1870.In 1907, Pistorf and Prarath seceded from Gleinstätten to form their own municipalities; however, Prarath rejoined in 1965.