Debugging build array function.