Added switch to make sure modification only causes run on every second modification - necessary to make it run on docker.