Safer fracking thanks to new early warning system