Revised to fix all short comings. 

The first version didn't really work when we used it. This version works.