Unused variable `remaining`