Added array values for parents and function value