Cleans up the app object a little bit.