Add script and functions to calculate cost of brain wiring.