Implementated SA-based mapping.