Preparing the mappers