Add task struct.