Rewrote maxes with StackOverflow suggestions, fixed Exception string.