Added \todo tags to the agent function.