Add media detection and error formatters.