Derbyshire clinched their first away victory in the County Championship this season with a six-wicket win over Glamorgan on Friday.
Requiring 130 to win after removing Glamorgan's three remaining wickets in just 25 minutes on day four, the visitors took 27 overs to overhaul their hosts in Cardiff.
Resuming on 250 for seven - a lead of 96 - Tim Groenewald struck with the fourth ball of the day to trap Wagg lbw for nine before having Mark Wallace caught behind for 70 in his next over.
Final pair of Cosker and Owen tried to hang on but Cosker fell three overs later shouldering arms to Tony Palladino.
New Zealand opener Martin Guptill led Derbyshire's charge, striking a fine unbeaten half-century to help his side to their target
Guptill made 70 not out from 72 balls, including 10 fours and two sixes, after fellow opener Wayne Madsen was caught at second slip off James Harris with the second ball of the innings.
Harris accounted for Chesney Hughes (2) in the eighth over but Wes Durston added 20 in a a third-wicket partnership of 56 in 6.3 overs to put the visitors well within sight of their target.
But the first-innings centurion Durston fell lbw and Dan Redfurn (7) followed soon after leaving Ross Whiteley (30 not out) to wrap things up with Guptill after lunch.
Half-centuries from Mike Powell and Mark Wallace kept Glamorgan's hopes alive after they had been asked to folllow-on against Derbyshire on day three.
Resuming their first innings at 174-8 on the third morning, the Welsh county were soon all out for 213, a deficit of 154.
Derbyshire skipper Luke Sutton enforced the follow-on and was scenting victory when Glamorgan slumped to 83-5 in early afternoon, including three wickets for seamer Tony Palladino.
But Powell (87) and Wallace (66no) shared a sixth-wicket stand of 136 to take their side back into credit.
Powell was denied a century when he was bowled by off-spinner Wes Durston but Wallace remained unbeaten through to the close, which came with Glamorgan on 250-7, a lead of 96.
Jon Clare bowled Derbyshire into a strong position by the end of the second day of their LV County Championship clash with Glamorgan in Cardiff.
Seamer Clare claimed 5-29 as the hosts, replying to Derbyshire's first-innings total of 367, were reduced to 174-8 at the SWALEC Stadium.
Only captain Alviro Petersen, with 83 not out, showed any real resistance for the Welsh county, who will need a further 44 runs to avoid being asked to bat again in the Division Two contest.
Petersen put on 68 with Mark Wallace before the wicketkeeper, James Harris and Graham Wagg were all caught behind off the bowling of Clare, who had already dismissed Ben Wright and Jim Allenby in the same over.
Allenby had earlier taken the final four Derbyshire wickets to claim career-best figures of 5-44 from 20 overs, Dan Redfearn the first of them for 88.
The all-rounder played on shortly before lunch, meaning he was unable to convert a 12th first-class 50 into his maiden century for the visitors.
A maiden first-class century by Wes Durston for Derbyshire gave his side a strong start on the opening day of their Division Two clash against Glamorgan.
Durston's knock accounted for 106 of Derbyshire's total of 219-4 from 63 overs before bad light stopped play at the SWALEC Stadium.
Graham Wagg struck first against his former county, trapping New Zealand international Martin Guptill leg before and Chesney Hughes saw his stumps clattered after shouldering arms to James Harris to leave the visitors on 26-2.
Third-wicket pair Wayne Madsen and Durston steadied things, though, putting on 100 in 25 overs before Madsen (44) hooked a short-pitched ball from Will Owen straight to Harris at fine-leg.
And Durston and Dan Redfern took the visitors to tea on 172-3 and the former completed his ton two overs later. His innings, however, came to an end when he was bowled byJames Allenby to make it 202-4.
Redfern was left stranded on 48 not out when bad light ended the day's play at 6.30pm.