Pretty sure something like this is the solution to the problem.