Added nested hash functionality