Add location functionality.