Added auto detection to content type.