Break getPreview apart for clarity (suggestion from @rrees)