Make clear the declaration of tasks and adding variable accessor inside tasks