Fix wrong serialisation for reads.
Added primitive for adding a task definition.