Removed StepLine logic to simplify code and update last_method only when location is available(our code)