Implemented the location filter for friend.