Serialize Agent tasks

Ok