Added support for defaultLocation.