Added multiple locations support.