Add Location function.