Base codes for a general app.