Updated execute to check if list_ is a list.