Revert "Revert "Array to hash added""

This reverts commit 365f9bf60e731cdd9a8ed559d0e898700997c3a1.