Add context history formatter and add event string to context to help with output.