First version of generalized mapping functions