Can't serialize an Agent, switched to using ID as an int can be serialized.