Reverted unintentional changes in agent.cpp/agent.h