Changed function name and add contentMode