Rewrote rampup code.
Added mode field to task javascript.