Add path logic.