Scripts for LOVD and eleni's paper