Changed variable name from model to mapper.