Attempt to serialize Agent