Updated to allow modification of requested URL when building script.