Here are some bits yanked from my traffic control script: