Fixed the large if statement so it would actually work.