Made content type detection optional