This fixes issue #59 and optimize the way the prescaler is found. Furthermore non needed instructions are not repeated.