Add stages in tasks