The upper waterworks (today the tax office) was installed in 1774 to run the fountains in the eastern palace grounds. It was fitted with two water tanks on the top storey, and two undershot waterwheels driven by a system of hydraulics which, even in the nineteenth century, was acclaimed as a technical marvel.