Some mapping functions to separate module.