function duffsdevice(iterations) {

    // The value we want to performe an operation on
    var opValue = 0;

    // Calculate "spillovers". Spillovers are the numbers not fitting in when the number
    // of iterations are divided with the number of simultanius operations performed
    // Ex: 66 % 8 = 2
    var i = iterations % 8;

    // Run trough the spillovers
    // i must be greater than 0!!
    if(i > 0){
        do{
            opValue++;  // Operation we want to performe goes here...
        }while(--i);
    }

    // Run trough the number of iterations divided by the number of simultanious
    // operations we would like to performe.
    i = parseInt(iterations / 8);
    do{
        opValue++;  // Operation we want to performe goes here...
        opValue++;  // and here..
        opValue++;  // and here..
        opValue++;  // and here..
        opValue++;  // and here..
        opValue++;  // and here..
        opValue++;  // and here..
        opValue++;  // and here..
    }while(--i);
}