Updated app listener, added programmatic startup