Some changes to ANI script and activity.