Reverted to old array syntax and renamed result variable