Checking media types correctly now