Implement basic preview functionality #15