Modified to use multiple challenges.