Refactor mapFunctions:
  unified interface for all functions,
  accepts multiple parameters.
Density parametre for dimensional functions