Adding location global setting and request params hook.