Live preview refactoring.