Made some changes that make the app run better.