Add hacky MIME function.