Both portable and permanent derails are tools that attach to the track, causing the train to slowly derail as it rolls over them. These safety measures are used in situations where it would be more dangerous to allow the locomotive to forge ahead, such as instances where a person or animal is blocking the track.