Updated hard-coded urls to be dynamic.