Creates the logic that compares and creates the report file.