Added Path function (not good performance)