Working application, woo. Some mem leaks