Added preprocess so it handles the app case with fun and anything else differently