In June 2007, YouTube began trials of a system for automatic detection of uploaded videos that infringe copyright. The system was regarded by Google CEO Eric Schmidt as necessary for resolving lawsuits such as the one from Viacom, which alleged that YouTube profited from pirated content.The system, which became known as Content ID, creates an ID File for copyrighted audio and video material, and stores it in a database. When a video is uploaded, it is checked against the database, and flags the video as a copyright violation if a match is found.