There has been done a little work on this, but it is very rudimentary. I need to think this through properly.