Sequential Mining Script