Berwick Rangers defeated East Fife for the second week in a row to knock the Third Division leaders out of the Scottish Cup.
Kevin Haynes converted from the penalty spot to give the visitors a half time lead but Neil Jablonski shot East Fife level in the 74th minute.
Striker Garry Wood netted in the 89th minute after a mistake from John Smart.
And Berwick sub Dennis McLaughlin made the tie safe when he hammered in the third goal in injury time.
East Fife: Iain Ross, Smith, Jonathan Smart, McGowan, Dair, Blackadder, Jablonski, Courts, Hampshire (Martin 62), O'Reilly, Fortune (Craig Smart 62). Subs Not Used: Doyle, Gordon, Dodds.
Booked: Courts. Goal: Jablonski 74.
Berwick Rangers: Flockhart, Robbie Manson, Horn, Smith, Noble, Thomson, McNicoll, Gary Greenhill, David Greenhill, Haynes (McLaughlin 73), Wood. Subs Not Used: Paliczka, McCallum, Lucas, Connon.
Booked: Wood, Thomson. Goals: Haynes 35 pen, Wood 89, McLaughlin 90.
Ref: A Boyd