Using ternary operator and clarified mapping.