Serialize Agent tasks

Yep, moved things around last-minute.