Corrected logic for filename generation in derivative sequencers.