Added getpath and setpath