Changed the way the recording are generated, because it was failing on recent perls