Allows either of tasks or customsTasks definition