Added custom location prefix support.