Added code of set tasks.