Add reader.close() in case it changes anything (it doesn't), setRandomSeed for debugging purpose in the main