Modify sim2.pl