Add support for initialization by location hash