He applied the brakes but was only able to reduce speed to 20 mph , before colliding with the freight train which was stationary on the same line, having stopped when the signalman showed the driver a red flag.