Rewrite frontend automation