Add location directive