Added getpath method