This logic should go in a controller class for the FixedPreview.