Substitute Alexander Isak made sure the "work was worth it" says manager Eddie Howe, as the Newcastle striker marked his return from injury with an 89th-minute winner against Fulham.
Club record signing Isak, on his first league appearance since September, nodded home from close range at a jubilant St James' Park to send Newcastle back into third in the Premier League.
It came after Aleksandar Mitrovic's converted penalty for Fulham was unusually disallowed when he accidentally kicked the ball onto his standing foot as he slipped while striking the ball.
It was a dramatic final 30 minutes to a tight game which Newcastle edged without being able to create clear chances.