Lots of stupid final app stuff, almost runs without errors