Grimley517 issue11

This should be a working thing now.   Just needs a little commenting to explain.