Hydro::update() with in-function and while loop implementation