Generalize script. Fix #5