Add start and end task.