Restructuring perl workflow 12/15