Tested with sbatch. Works. Should make it easier to change parameters, but works so far.