Added small heapspace optimization in DeerAgent, WolfAgent.