Porting ac (5/27)

Porting ac