Potential final copy of front-end for app.c