First version of generic source routing script