AC Sweep Function added