Instead of different scripts for credit card and current account statements, define a profile for each that specifies the date and amount columns, and have this control the processing.