Add ability to pass ObjectMapper.