In 1851 the religious and municipal functions were formally separated; the congregation purchased a portion of the ground floor, and converted the gallery level into a full second floor, creating a new sanctuary.