Add path record function