Cleaned periodic FIR code for ExternalOutput