Added getPath method.