Added function to configure the mapper object