Added change of reference function and doc