Adding preliminary mapping doc handling.