File stream and sequence modules modernized.