Working on nd array

Still leaving log info exists in case of future use.