Needs testing but...

That might just do it.