Add map function
Add map function for media and Test function mode