Completely rewrite the reveal function.