Script: automatic route