Added mimetype filtering.