Made a half-fix to the Agent array. It still needs work.