Implement history function

Signed-off-by: Steven Downer <grinch@outlook.com>