Rewrite spec