Updated to allow modification of requested URL when building script.
2.0 rewrite