add: Basic support for preview mode.