Added support for multi dimensional arrays