Western Australia is well-placed at the end of day two of its three-day tour match against South Africa at the WACA, with the visitors struggling at 2-25 in their second innings, still 187 runs behind WA's first innings total of 8-391 declared.
Warriors captain Justin Langer enforced the follow on after shortly after tea when South Africa crumbled to reach only 179 in its first innings.
It proved to be a good decision when A B De Villiers (7) was caught behind off Ben Edmondson in the second over.
South Africa was then reeling when Herschelle Gibbs (13) was caught behind off Steve Magoffin, leaving it at 2-23, and in trouble of losing the match outright on the final day.
Ashwell Prince (1no) and Jacques Rudolph (4no) survived the remaining overs, having to deal with a packed slips cordon late in the day.
WA debutant Shawn Gillies was the standout bowler in South Africa's first innings, claiming the first three wickets to finish with figures of 3-41.
Edmondson (3-48) and Beau Casson (4-21) were also impressive, combining to clean-up the middle and lower order.
Earlier in the day, WA resumed its first innings on 5-306 before losing both overnight batsmen in consecutive overs.
David Bandy (64) was the first to go when an attempted pull shot off the bowling of Langeveldt skied into the air and was caught at point.
Gillies followed next over after edging Makhaya Ntini (20) to gully.
Luke Ronchi was dismissed on 16 when he left a fantastic Charl Langeveldt in-swinger that crashed into his off stump.
The Warriors declared shortly before lunch, after Casson and Steve Magoffin helped lift the score with a 48-run partnership.
Langeveldt bowled superbly in the morning session, and finished with figures of 4-104.
South Africa's first innings started off well, with openers De Villiers and Rudolph reaching 71 before Gillies was brought into the attack in the 21st over with immediate effect.
The Jamaican-born paceman bowled De Villiers with just his second ball for 27, and then dismissed Rudolph four balls later, caught at point for a well-made 43.
Gilllies soon had his third when Prince top-edged a short ball which flew into the air and was easily caught by Magoffin at fine-leg.
Gillies bowled with good pace and bounce, and seemed to continually trouble the batsmen.
Gibbs momentarily settled the ship and reached 25 with some glorious shots but was bowled by Edmondson just four minutes before tea to give the Warriors the upper hand.
Edmondson continued his good spell shortly after the break to remove Mark Boucher (8), and Justin Kemp (13), in the same over.
Boucher holed out in the deep, while Kemp was unable to keep out a fantastic yorker.
The visitors were soon deep in trouble when Shaun Pollock was caught for four, and Ntini adjudged LBW off consecutive deliveries from Casson to reduce South Africa to 8-136.
Andre Nell was lucky to survive the hat-trick ball after he played and missed, with the ball just centimetres away from the stumps.
However Casson soon had his man when Nell edged him to Langer at slip.
Nicky Boje and Langeveldt combined for a handy 33-run last-wicket partnership, but it wasn't nearly enough as they fell 212 runs short of WA's first innings total when Langeveldt was caught and bowled by Casson.