Parameterising tasks into an array