Various updates to main firmware app.