Add mintime check to reduce duplicate records. Add ads.