Cleaning up file sequence code.