in addition to using sophisticated sensors to monitor and register the goings-on of capital city , compiling information for munis about the flow of people and goods-keeping everything running smoothly , perfectly-the grid 's lesser-known function was a protective one .