Agent class update