Recognising and preventing dangers