Started last order function