Made locally-used functions static.