Fixed the performance problems with AISFrame.