Changes to improve AC-AC detection at start