Add mime module and functionality.