Message history

I have left in some fragments that we do not need.