Added an attempt to write a mapper by code.