Avoid multiple building of tasks