Detection logic for different mapping options