Add Analysis Logic