Implementing data surface mime type recognition. Needs more work.