Add history support

Signed-off-by: Cody Massin <keyosk@gmail.com>