enhanced performance consistency between the daily and monthly script. Changes proposed by Marie Remaud (MR)