Added check for unsupported formats