Rewriting the frontend