Added getPath() method