Allow to set map type in helper function.