Add location hook support