Consolidated main activity code, beginning to hit a jam