Add replaceLocation