Sunderland needed two late goals to see off basement side Crewe at the Stadium of Light and keep their play-off challenge going.
The Black Cats could not find a breakthrough for 85 minutes, before substitute Dan Neil finally found a way through.
And fellow sub Patrick Roberts added the second goal in the final minute of the 90 to give Sunderland a cushion and avoid any nerves in injury-time.