Try matts solution.