Implement loc verification function