Read file correctly to set positions and the defaults