Changes in earn-aggcat to accommodate firefly application