Took out unreliable call to ftell()