Adding simple MIME support