Changed index_of result to enum.