Added media type.
Removed logging.