diff --git a/experiments/jobscripts/testing/lin_sep.sh b/experiments/jobscripts/testing/lin_sep.sh
index 96345366a28f4fe9f190c944a16ee61aefd4c263..9c8af82c873a100a786a7e2d64cbca82bc57e42e 100644
--- a/experiments/jobscripts/testing/lin_sep.sh
+++ b/experiments/jobscripts/testing/lin_sep.sh
@@ -9,10 +9,8 @@
 #SBATCH --account=research-eemcs-insy
 #SBATCH --mail-type=END     # Set mail type to 'END' to receive a mail when the job finishes. 
 
-module load 2023r1 julia
 module load openmpi
 
-set -x
-export SRUN_CPUS_PER_TASK="$SLURM_CPUS_PER_TASK"
+source experiments/slurm_header.sh
 
 srun julia --project=experiments --threads $SLURM_CPUS_PER_TASK experiments/run_experiments.jl -- data=linearly_separable output_path=results mpi grid_search n_individuals=10 threaded > experiments/grid_search_linearly_separable.log
diff --git a/experiments/slurm_header.sh b/experiments/slurm_header.sh
new file mode 100644
index 0000000000000000000000000000000000000000..48da377bd91e7bfbfd678f08a77090dfafeda755
--- /dev/null
+++ b/experiments/slurm_header.sh
@@ -0,0 +1,3 @@
+set -x                                                  # keep log of executed commands
+export SRUN_CPUS_PER_TASK="$SLURM_CPUS_PER_TASK"        # assign extra environment variable to be safe 
+export OPENBLAS_NUM_THREADS=1                           # avoid that OpenBLAS calls too many threads
\ No newline at end of file