Fixed some bugs. Handling activities getting destroyed and recreated is annoying.