Add missing device current config computation before While loop, Fix constant or variable time Step