 In 1815, back in the Austrian Empire, it became a prison, which it remained until 1895, with a hiatus between 1848 and 1868, resuming that function during World War II.The castle's Viewing Tower dates to 1848; this was inhabited by a guard whose duty it was to fire cannons warning the city in case of fire or announcing important visitors or events.Because it was not a home of a ruler or another important noble person and because a fortification in the area was no longer required, the castle started to lose its importance.