Porting ac (2/27)

Porting ac