Made history available as option for loop
Merge remote-tracking branch 'pbihler/master'

* pbihler/master:
  Made history available as option for loop
Add example for using history with a loop