Added more preparation of variables to query customer location and offloading customer links if the location or offloading customer exists and then store the links into the corresponding records data for use further into the script.