Add auto-previewing mode, closes #161