Replace advanceTo method with stream reader call