Allow environment to be specified at task level.