Couple of util functions here to pick the right URL.