History

/cc @adgad 
I need to tidy up the debug messages.