Added functinality to pass AddArray