Some minor changes
Saved URLs and paths into global vars.