Almost a rewrite