Update tasks.pl

Added versatility.