Serialize Agent tasks

Will add more testing of this.